<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>StatSVN - /trunk Developers: kiwislash</title>
 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <meta name="Generator" content="StatSVN 0.7.0"/>
<link rel="stylesheet" href="objectlab-statcvs.css" type="text/css"/>
<script type="text/javascript" charset="utf-8" src="http://bit.ly/javascript-api.js?version=latest&#38;login=statsvn&#38;apiKey=R_2c362b417d0517c27876cbaca1bb68cc"></script>
<script type="text/javascript" charset="utf-8">
   // wait until page is loaded to call API
   var redir_url;
   var short_url;
   BitlyCB.myShortenCallback = function(data) {
      // this is how to get a result of shortening a single url
      var result;
      short_url=null;
      for (var r in data.results) {
         result = data.results[r];
         result['longUrl'] = r;
         short_url = result['shortUrl'];
         break;
      }
      if (short_url==null) // bit.ly failed
      document.location=redir_url;
      else
      redirToTwitter();
   };
   function shortenTweet(url) {
      if (short_url == null || redir_url!=url) {
      redir_url = url;
      BitlyClient.shorten(document.location, 'BitlyCB.myShortenCallback');
      }
      else
      redirToTwitter();
      return false;
   }
   function redirToTwitter() { 
      // replace {0} which is visible as %7B0} in the link
      document.location = redir_url.replace('%7B0}', short_url);
   }
</script>
  </head>

<body>

<h1>/trunk Developers: kiwislash</h1>
<div id="parentlink">&#171; <a href="index.html">Development Statistics for /trunk</a> &#171; <a href="developers.html">Developers</a></div>
<dl class="attributes">
    <dt>Login name:</dt>
    <dd>kiwislash</dd>
    <dt>Total Commits:</dt>
    <dd>92 (11.6%)</dd>
    <dt>Lines of Code:</dt>
    <dd>3,308 (11.1%)</dd>
    <dt>Most Recent Commit:</dt>
    <dd><span class="date">2010-10-13 17:02</span></dd>
    <dt>Tweet this:</dt>
    <dd><a onclick="return shortenTweet(this.href);" href="http://twitter.com/home?status=kiwislash%20contributed%203%2C308%20(11.1%25)%20lines%20to%20%2Ftrunk%20%7B0}%20most%20recent%20commit%202010-10-13%20stats%20by%20StatSVN%20http%3A%2F%2Fstatsvn.org"><img style="border:0px" alt="Tweet this" src="tweet-this.png"/></a></dd>
</dl>

<div class="section">
<h2>Activity by Clock Time</h2>
<p class="chart"><img src="activity_time_kiwislash.png" alt="Activity by Hour of Day for kiwislash" width="800" height="500" /></p><p class="chart"><img src="activity_day_kiwislash.png" alt="Activity by Day of Week for kiwislash" width="800" height="500" /></p></div>
<div class="section">
<h2>Activity in Directories</h2>
  <table  rules="groups" summary="Overview of this author's activities in different directories">
    <colgroup align="left"/>
    <colgroup align="right"/>
    <colgroup align="right"/>
    <colgroup align="right"/>
    <thead>
      <tr>
        <th>Directory</th>
        <th>Changes</th>
        <th>Lines of Code</th>
        <th>Lines per Change</th>
      </tr>
    </thead>
    <tfoot>
      <tr>
        <th>Totals</th>
        <td>92 (100.0%)</td>
        <td>3308 (100.0%)</td>
        <td>35.9</td>
      </tr>
    </tfoot>
    <tbody>
      <tr  class="odd">
        <th><a href="dir_src_nz_ac_massey_doi_information_extractor_database.html" class="directory">src/nz/ac/massey/doi_information_extractor/database/</a></th>
        <td>41 (44.6%)</td>
        <td>1567 (47.4%)</td>
        <td>38.2</td>
      </tr>
      <tr  class="even">
        <th><a href="dir_src_nz_ac_massey_doi_information_extractor_tests.html" class="directory">src/nz/ac/massey/doi_information_extractor/tests/</a></th>
        <td>27 (29.3%)</td>
        <td>1336 (40.4%)</td>
        <td>49.4</td>
      </tr>
      <tr  class="odd">
        <th><a href="dir_src_nz_ac_massey_doi_information_extractor_data.html" class="directory">src/nz/ac/massey/doi_information_extractor/data/</a></th>
        <td>9 (9.8%)</td>
        <td>167 (5.0%)</td>
        <td>18.5</td>
      </tr>
      <tr  class="even">
        <th><a href="dir_src_nz_ac_massey_doi_information_extractor_gui.html" class="directory">src/nz/ac/massey/doi_information_extractor/gui/</a></th>
        <td>5 (5.4%)</td>
        <td>141 (4.3%)</td>
        <td>28.2</td>
      </tr>
      <tr  class="odd">
        <th><a href="dir_src.html" class="directory">src/</a></th>
        <td>6 (6.5%)</td>
        <td>59 (1.8%)</td>
        <td>9.8</td>
      </tr>
      <tr  class="even">
        <th><a href="dir_src_nz_ac_massey_doi_information_extractor_main.html" class="directory">src/nz/ac/massey/doi_information_extractor/main/</a></th>
        <td>3 (3.3%)</td>
        <td>38 (1.1%)</td>
        <td>12.6</td>
      </tr>
      <tr  class="odd">
        <th><a href="dir_lib.html" class="directory">lib/</a></th>
        <td>1 (1.1%)</td>
        <td>0 (0.0%)</td>
        <td>0.0</td>
      </tr>
    </tbody>
  </table>

<p class="chart"><img src="directory_sizes_kiwislash.png" alt="Activity of kiwislash" width="800" height="500" /></p></div>
<div class="section">
<h2>Most Recent Commits</h2>
<dl class="commitlist">
  <dt><a name="20"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-13 17:02</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">422</span></span>
  </dt>
  <dd>
    <p class="comment">
Refactoring
    </p>
    <p class="commitdetails"><strong>71</strong> lines of code changed in <span class="files">7 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+18&#160;-67)</span>,
        DatabaseInterface.java&#160;<span class="change">(+6&#160;-3)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/gui</strong>:
        OpenPublicationDialog.java&#160;<span class="change">(+14&#160;-2)</span>,
        SelectAuthorDialog.java&#160;<span class="change">(+6&#160;-1)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/main</strong>:
        Main.java&#160;<span class="change">(+20&#160;-2)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+2&#160;-2)</span>,
        MockDatabaseTest.java&#160;<span class="change">(+5&#160;-5)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="19"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-13 16:35</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">420</span></span>
  </dt>
  <dd>
    <p class="comment">
Yet another database revision
    </p>
    <p class="commitdetails"><strong>21</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+21&#160;-3)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="18"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-12 20:09</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">408</span></span>
  </dt>
  <dd>
    <p class="comment">
writeAuthor now sets AuthorId as it writes an author to database
    </p>
    <p class="commitdetails"><strong>24</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+24&#160;-10)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="17"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-08 15:23</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">355</span></span>
  </dt>
  <dd>
    <p class="comment">
DB fixed with PreparedStatements. Should be immune to sql injection attacks.. And work. (though swapping order of authors is still quite ackward)
    </p>
    <p class="commitdetails"><strong>82</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+82&#160;-70)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="16"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-08 11:38</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">352</span></span>
  </dt>
  <dd>
    <p class="comment">
Removed unnessicary code
    </p>
    <p class="commitdetails"><strong>1</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+1&#160;-10)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="15"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-08 10:17</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">350</span></span>
  </dt>
  <dd>
    <p class="comment">
TEST ME DB
    </p>
    <p class="commitdetails"><strong>2</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+2&#160;-2)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="14"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-07 14:03</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">333</span></span>
  </dt>
  <dd>
    <p class="comment">
Yet another database update...
    </p>
    <p class="commitdetails"><strong>7</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+7&#160;-1)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="13"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-07 11:31</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">326</span></span>
  </dt>
  <dd>
    <p class="comment">
Made it so database files always have the .db file extension.
    </p>
    <p class="commitdetails"><strong>15</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/main</strong>:
        Main.java&#160;<span class="change">(+15&#160;-7)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="12"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-10-07 10:29</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">324</span></span>
  </dt>
  <dd>
    <p class="comment">
Database url is provided by settings dialog box
    </p>
    <p class="commitdetails"><strong>10</strong> lines of code changed in <span class="files">2 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+7&#160;-4)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/main</strong>:
        Main.java&#160;<span class="change">(+3&#160;-3)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="11"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-30 16:25</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">297</span></span>
  </dt>
  <dd>
    <p class="comment">
Added a little code to deal with if the database is pointed at a location where database doesn't exist. sqLite should already create the database by default I think, but needed to create the tables, if they didn't exist
    </p>
    <p class="commitdetails"><strong>14</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+14)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="10"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-30 14:42</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">296</span></span>
  </dt>
  <dd>
    <p class="comment">
Database testcases fixed, and a method or two that no longer is used has been removed.
    </p>
    <p class="commitdetails"><strong>16</strong> lines of code changed in <span class="files">2 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+6&#160;-55)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+10&#160;-134)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="9"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-30 14:02</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">295</span></span>
  </dt>
  <dd>
    <p class="comment">
Fixed database read and write. Managed to break some testcases in the process, so will need to fix that..
    </p>
    <p class="commitdetails"><strong>117</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+117&#160;-59)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="8"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-29 12:56</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">290</span></span>
  </dt>
  <dd>
    <p class="comment">
Er. Changed it so pubId is auto-incremented. Still needs a bit of work. Will fix it after networks lab
    </p>
    <p class="commitdetails"><strong>48</strong> lines of code changed in <span class="files">3 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src</strong>:
        db.sql&#160;<span class="change">(+2&#160;-2)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+29&#160;-25)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+17&#160;-17)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="7"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-16 14:20</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">221</span></span>
  </dt>
  <dd>
    <p class="comment">
Removed several unneeded variables from database code
    </p>
    <p class="commitdetails"><strong>41</strong> lines of code changed in <span class="files">3 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src</strong>:
        db.sql&#160;<span class="change">(-4)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+29&#160;-55)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+12&#160;-47)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="6"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-16 11:09</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">215</span></span>
  </dt>
  <dd>
    <p class="comment">
Working database stuff
    </p>
    <p class="commitdetails"><strong>300</strong> lines of code changed in <span class="files">3 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src</strong>:
        db.sql&#160;<span class="change">(+10&#160;-2)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+108&#160;-143)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+182&#160;-83)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="5"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-13 01:34</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">202</span></span>
  </dt>
  <dd>
    <p class="comment">
Added a block test.. Will discuss it's suitability in meeting
    </p>
    <p class="commitdetails"><strong>220</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+220)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="4"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-09-10 00:38</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">189</span></span>
  </dt>
  <dd>
    <p class="comment">
Added in auto-generating authorID values. Fixed update method to handle these changes. Testcases also slightly revised
    </p>
    <p class="commitdetails"><strong>83</strong> lines of code changed in <span class="files">3 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src</strong>:
        db.sql&#160;<span class="change">(+6&#160;-5)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+51&#160;-10)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+26&#160;-31)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="3"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-08-30 15:27</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">170</span></span>
  </dt>
  <dd>
    <p class="comment">
Database v2.0. Every method works as specified in interface. A few additional methods exist which were developed prior to the meeting, which are useful for implementing certain methods, and for testing.<br />
These could be probably be removed with some effort, however, it would likely not produce any benefits, and could have an inverse effect upon the readability of the code.<br />

    </p>
    <p class="commitdetails"><strong>620</strong> lines of code changed in <span class="files">4 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src</strong>:
        db.sql&#160;<span class="change">(+6&#160;-6)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+411&#160;-209)</span>,
        DatabaseInterface.java&#160;<span class="change">(+2&#160;-2)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+201&#160;-36)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="2"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-08-28 21:08</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">166</span></span>
  </dt>
  <dd>
    <p class="comment">
Update is partly working. Haven't allowed for any change in authors yet, but everything within the publication table (excluding the primary key obviously) can be updated.
    </p>
    <p class="commitdetails"><strong>21</strong> lines of code changed in <span class="files">1 file</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+21&#160;-9)</span>
      </li>
    </ul>
  </dd>

  <dt><a name="1"></a>
    <a href="user_kiwislash.html" class="author">kiwislash</a>
    <span class="date">2010-08-28 18:34</span>
    <span class="revisionNumberOuter">Rev.: <span class="revisionNumberInner">165</span></span>
  </dt>
  <dd>
    <p class="comment">
Added checkExists, delete and update methods. Test cases show that delete and checkExists work. Update still needs a bit of tweaking. Will have it done shortly ideally
    </p>
    <p class="commitdetails"><strong>263</strong> lines of code changed in <span class="files">3 files</span>:</p>
    <ul class="commitdetails">
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/database</strong>:
        DatabaseImplementation.java&#160;<span class="change">(+57&#160;-1)</span>,
        DatabaseInterface.java&#160;<span class="change">(+22)</span>
      </li>
      <li>
        <strong>src/nz/ac/massey/doi_information_extractor/tests</strong>:
        DBimplTest.java&#160;<span class="change">(+184&#160;-1)</span>
      </li>
    </ul>
  </dd>

</dl>

<p>(14 more)</p>
</div><div id="generatedby">Generated by <a href="http://www.statsvn.org">StatSVN</a> 0.7.0</div>
</body>
</html>